package cs.upt.awp.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cs.upt.awp.dao.UserRolesDAO;
import cs.upt.awp.data.TravelRecord;
import cs.upt.awp.data.UserRole;

public class TravelUseRolesServices implements DataServices<UserRole>{

	@Autowired
	UserRolesDAO userRolesDao;
	
	@Override
	public boolean addEntity(UserRole role) throws Exception {
		return userRolesDao.addEntity(role);
	}

	@Override
	public UserRole getEntityById(long id) throws Exception {		
		return userRolesDao.getEntityById(id);
	}

	@Override
	public List<UserRole> getEntityList() throws Exception {
		return userRolesDao.getEntityList();
	}

	@Override
	public boolean deleteEntity(long id) throws Exception {
		return userRolesDao.deleteEntity(id);
	}
	
	

}
